/* 
* File: vector_front.cpp
* 测试用例修改自 http://www.cplusplus.com/reference/stl/vector/vector/
* 编译命令：
* 	c++ -Wall -g  -I ../Include/ vector_front.cpp -o vector_front 
* 在这里假设所有的所需的头文件放在../Include里面
*/
// vector::front
#include <iostream>
#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
	vector<int> myvector;

	myvector.push_back(78);
	myvector.push_back(16);

	// now front equals 78, and back 16

	myvector.front() -= myvector.back();

	cout << "myvector.front() is now " << myvector.front() << endl;

	return 0;
}
